package week2;

public class Test {
    public static void main(String[] args) {
        Person[] person = new Person[5];
        person[0] = new Teacher("张三",30,"t023456");
        person[1] = new Teacher("李四",31,"t023457");
        person[2] = new Student("王五",22,"s123458");
        person[3] = new Student("赵六",23,"s123459");
        person[4] = new Student("钱七",24,"s123460");
        for(Person p:person){
            p.showMessage();

        }
    }
}
